home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994 August: Tool Chest / Dev.CD Aug 94.toast / New System Software Extensions / OpenDoc A6 / OpenDoc Parts Framework / OPF / OS / FWGraphx / Include / FWWinPen.h < prev   
Encoding:
Text File  |  1994-04-21  |  2.0 KB  |  87 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                FWWinPen.h
  4. //    Release Version:    $ 1.0d1 $
  5. //
  6. //    Creation Date:        3/28/94
  7. //
  8. //    Copyright:    © 1993, 1994 by Apple Computer, Inc., all rights reserved.
  9. //
  10. //========================================================================================
  11.  
  12. #ifndef FWWINPEN_H
  13. #define FWWINPEN_H
  14.  
  15. #ifndef FWWINGDI_H
  16. #include "FWWinGDI.h"
  17. #endif
  18.  
  19. #ifndef FWCOLOR_H
  20. #include "FWColor.h"
  21. #endif
  22.  
  23. #ifndef FWINK_H
  24. #include "FWInk.h"
  25. #endif
  26.  
  27. #ifndef FWSTYLE_H
  28. #include "FWStyle.h"
  29. #endif
  30.  
  31. #ifdef FW_BUILD_WIN
  32.  
  33. //========================================================================================
  34. //    •• CLASS FW_CWinPen
  35. //========================================================================================
  36.  
  37. class FW_CWinPen : public FW_CGraphicObjectPtr
  38. {
  39.  
  40. //----------------------------------------------------------------------------------------
  41. //    • Constructors
  42. //
  43. public:
  44.     FW_CWinPen();
  45.     FW_CWinPen(FW_CInk ink, FW_CStyle style);
  46.     FW_CWinPen(const FW_CWinPen& otherPen);
  47.             
  48. protected:
  49.     FW_CWinPen(FW_CWinPenRep* rep);
  50.         // Creates a pointer pointing at rep.
  51.  
  52. //----------------------------------------------------------------------------------------
  53. //    • Operators
  54. //
  55. public:
  56.     FW_CWinPen& operator=(const FW_CWinPen& other);
  57.         // Assignment, point this pointer to the same rep as the other pointer points to.
  58.         
  59.     FW_CWinPenRep* operator->() const
  60.                 {return (FW_CWinPenRep*)GetRep();}
  61.         // Provide access to members of rep.    
  62. };
  63.  
  64. //========================================================================================
  65. //    •• CLASS FW_CWinPenRep
  66. //========================================================================================
  67.  
  68. class FW_CWinPenRep : public FW_CWinGDIObjectRep
  69. {
  70.  
  71. //------------------------------------------------------------------------------
  72. //    • Constructors/Destructors
  73. //
  74. public:
  75.     virtual ~FW_CWinPenRep();
  76.  
  77. protected:
  78.     FW_CWinPenRep();
  79.     FW_CWinPenRep(const FW_CWinPenRep& shapeRep);
  80.     FW_CWinPenRep(FW_CInk ink, FW_CStyle style);
  81.  
  82.  
  83. };
  84.  
  85. #endif
  86.  
  87. #endif